//express模块
const express = require('express')
//服务
const app = express()
//引入其他的模块想的js
const data = require('./students')
//接口
app.get('/', (req, res) => {
  res.send('Hello World!')
})
//学生信息接口
app.get('/student',(req,res)=>{
    res.send(data);
})

app.listen(3000, () => {
  console.log(`Example app listening on port 3000`)
})